package com.hunttown.mes.rpc.api;

import com.hunttown.common.domain.Page;
import com.hunttown.mes.rpc.domain.IotTimedTasksDTO;
import com.hunttown.mes.rpc.domain.query.IotTimedTasksDTOQuery;

/**
 * created by wangjunfu on 2020-10-05 16:33:38
 */
public interface IotTimedTasksRpcService {

    IotTimedTasksDTO insert(IotTimedTasksDTO iotTimedTasksDTO);

    Boolean updateInfoById(IotTimedTasksDTO iotTimedTasksDTO);

    Boolean updateInfoByQuery(IotTimedTasksDTOQuery iotTimedTasksDTOQuery);

    IotTimedTasksDTO selectById(Integer id);

    //仅供worker使用
    IotTimedTasksDTO selectByIdForWorker(Integer id);

    IotTimedTasksDTO selectObjByQuery(IotTimedTasksDTOQuery iotTimedTasksDTOQuery);

    Page<IotTimedTasksDTO> getListForPage(IotTimedTasksDTOQuery iotTimedTasksDTOQuery);

    //仅供worker使用
    Page<IotTimedTasksDTO> getListForPageForWorker(IotTimedTasksDTOQuery iotTimedTasksDTOQuery);

    Boolean deleteById(Integer id);
}